package tv.acgn.advertisement.publish.action;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import tv.acgn.advertisement.publish.exception.AbstractAdPubException;
import tv.acgn.advertisement.publish.service.AdUnitService;
import tv.acgn.advertisement.publish.vo.adunit.AdUnitDistrictRequestVO;
import tv.acgn.advertisement.publish.vo.adunit.AdUnitDistrictResponseVO;

/**
 * @author : junG
 * @program : advertisement-ad-pub-action
 * @description : 推广单元地区分发器
 * @date : 2019-06-02 15:05
 **/
@RestController
public class AdUnitDistrictAction {
    @Autowired
    private AdUnitService adUnitService;

    @PostMapping("/unit/district")
    public AdUnitDistrictResponseVO add(AdUnitDistrictRequestVO requestVO) throws AbstractAdPubException {
        return adUnitService.addAdUnitDistrict(requestVO);
    }

}
